﻿using System;
using BLL;
using System.Drawing;
using System.Web.Security;

public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        MembershipUserCollection muc=new MembershipUserCollection();
        foreach (MembershipUser u in Membership.GetAllUsers())
        {
            if (u.IsOnline == true)
                muc.Add(u);
        }
        this.GridView1.DataSource = muc;
        this.GridView1.DataBind();
    }
}
